package com.share.service.impl;

import com.share.service.PersonService;
import com.share.util.SpringUtils;
import org.springframework.stereotype.Service;

/**
 * @desc:
 * @author:caifan
 * @date:2020/6/4
 */
@Service("delegateServiceImpl")
public class DelegateServiceImpl implements PersonService {

    PersonService personService;

    @Override
    public void task(String biz) {
        personService = (PersonService) SpringUtils.getBean(biz + "ServiceImpl");
        personService.task(biz);
    }
}
